<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>将温度转换为便于阅读的形式</title>
</head>
<body>
<script>
    //    Equation is °C = 5/9 (°F - 32).
    var degreesFahrenheit = prompt('Enter the degrees in Fahrenheit', '50');
    var degreesCentigrade = 5 / 9 * (degreesFahrenheit - 32);
    alert(degreesFahrenheit + '\xB0 Fahrenheit is ' + degreesCentigrade + '\xB0 centigrade');
</script>
</body>
</html>